package com.lsh.payment.api.model.ipcpay;


import com.lsh.payment.api.common.XStreamInitializer;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;


@Getter
@Setter
public abstract class IpcBaseRequest implements Serializable {
  /**
   * 序列化ID
   */
  private static final long serialVersionUID = 7655869214382345747L;
  @XStreamAlias("head")
  private Head head;

  public String toXML() {
    XStream xstream = XStreamInitializer.getInstance();
    xstream.processAnnotations(this.getClass());
    return xstream.toXML(this);
  }

}
